﻿using Inovout.Cloud.Models;
using Inovout.Repositories;
using Inovout.Services;

namespace Inovout.Cloud
{
    public class CloudDataInitiator : DataInitiator
    {
        private IRepositoryService<Product> productService;
        private IRepositoryService<Project> projectService;

        public CloudDataInitiator(IRepositoryService<Product> productService, IRepositoryService<Project> projectService)
        {
            this.productService = productService;
            this.projectService = projectService;
        }
        public override void Initializate()
        {
            //productService.Save(new Product { Name = "Identity", Title = "云标识", AssemblyName = "Inovout.Cloud.Identity.Console.WebSite" });
            //productService.Save(new Product { Name = "Storage", Title = "云存储", AssemblyName = "Inovout.Cloud.Storage.Console.WebSite" });
           // productService.Save(new Product { Name = "Drive", Title = "云端硬盘", AssemblyName = "Inovout.Cloud.Drive.Console.WebSite" });

        }
    }
}
